<?php
namespace common\models\transfer;

use common\models\Common;
use common\models\user\User;

/**
 * This is the model class for table "goods".
 *
 * @property int $id
 * @property string $name
 */
class Transfer extends Common
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%transfer_info}}';
    }

    public function getUser()
    {
        return $this->hasOne(User::className(), ['id' => 'user_id']);
    }

    public function getReceiveUser()
    {
        return $this->hasOne(User::className(), ['id' => 'receive_user_id']);
    }

}